package com.ls.demo.enums;

/**
 * 通信类型（PC 下传客房、客房上传 PC）
 * @author liShan
 * @date 2019/8/30 17:13
 */
public enum CommandTypeEnum {

    /**
     * 客房上传 PC
     */
    UPLOAD(Byte.valueOf("1"), "F2", "F5"),

    /**
     * PC 下传客房
     */
    DOWNLOAD(Byte.valueOf("0"), "F1", "F4");

    CommandTypeEnum(byte type, String header, String tail) {
        this.type = type;
        this.header = header;
        this.tail = tail;
    }

    /**
     * 类型：0 下传， 1 上传
     */
    private byte type;

    /**
     * 包头
     */
    private String header;

    /**
     * 包尾
     */
    private String tail;

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getTail() {
        return tail;
    }

    public void setTail(String tail) {
        this.tail = tail;
    }
}
